-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Board autoswitch #7349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Board autoswitch #7349
Conversation
…t header for the sketch
@ArduinoBot build this please |
❌ Build failed. |
Error is
Probably missing an include that Eclipse resolved on its own? |
This should fix the build error
Still no luck... to make sure it builds on out CI servers, run |
@ArduinoBot build this please |
✅ Build completed. Please test this code using one of the following: ⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7349-BUILD-746-linux32.tar.xz ℹ️ The |
Is this going to be merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm ... 👎🏻
(‘Node32s’ .. among other things)
@lmihalkovic what do you mean with 'Node32s'? |
(not responding to previous comments, just reviewing this change) Overall, this seems like a great addition. Storing this inside the sketch is probably a good idea too, as it is probably very transparent for users. One downside is when using version control for a sketch, switching the board changes the file, but that is only minor. However, I'm not quite convinced of the current format chosen. Using a block comment with a header like I haven't looked at the implementation in detail, but there does seem to be room for improvement. In particular, I'm a bit puzzled by this line, which I think means that this feature only works to distinguish between multiple variants of the Node32s board, which is obviously not something that is generic enough to be merged. I suspect this is also what @lmihalkovic referred to. Some other thoughts:
|
@timkoers IMHO there are many ways to address this need. The Editor/EditorTab/Sketch/Controller code is ... well .. lets just say that i had do do ‘some’ cleanup in order to create a number of extensions that should be easy to do, but were not, due to the structure of the aforementioned code. Going into details would take time that i’d rather spend doing something else, as it would in the end be a matter of two conflicting views of what constitutes ‘good code’. PS: it is tiresome to have to stroke egos.. the code editor/../.. code is just poorly organised and the most recent round of changes did not improve the situation (textstorage or whatever the name was is a good idea done wrong). This code does the same: adds more enthropy to someonthing that has already plenty as it is |
Maybe a workable solution would be to store a copy of preferences.txt (PREFS_FILE) inside the project directory?
|
|
Merged the auto board selector code into the master branch.
Also the BareMinimum.ino has got the new header right now
See arduino/arduino-ide#2438